<template>
  <div class="m-summary">
    <!-- 循环item -->
    <div class="item" v-for="item in summary" :key="item">
      <div class="item-icon">
        <i class="iconfont">&#xe611;</i>
        <span>{{item.text}}</span>
      </div>
      <div class="item-detail">{{item.descript}}</div>
    </div>
   
  </div>
</template>

<script>
export default {
  props:{
    summary:{
      type:Array
    }
  },
  setup() {
    return {};
  },
};
</script>
<style scoped>
.m-summary {
  background-color: #fff;
  line-height: 2;
  margin-bottom: 10px;
  padding: 5px 10px 5px 15px;
  margin-top: 10px;
}
.m-summary .item {
  display: flex;
  padding: 3px 0;
  position: relative;
}
.m-summary .item::before {
  content: " ";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  border-bottom: 1px solid #eee;
  transform-origin: 0 0;
  transform: scale(0.5);
}
.m-summary .item .item-icon {
  color: #666;
  font-size: 12px;
  margin-right: 10px;
}
.m-summary .item .item-icon .iconfont {
  display: inline-block;
  font-size: 14px;
  margin-right: 5px;
}
.item-detail {
  font-size: 15px;
  flex: 1;
}
</style>
